import updateButtonStatus from "./updateButtonStatus";

export default function clearMainTableData() {
    this.setState({
        selectedPsn: '',
        selectedPsnPk: '',
        pageInfo: {
            pageSize: 10,
            pageIndex: 1,
            total: 0,
            totalPage: 1
        }
    }, () => {
        updateButtonStatus.call(this);
    });
    this.props.table.setAllTableData('info', {rows: []});
}
